package sisi.agents;

import java.io.Serializable;
import javax.persistence.*;

import java.sql.Date;


/**
 * Agent.java - The persistent class for the <i>agent's database table</i>. 
 * @author Pedro Gonzalez pedro@sisisoftware.it
 * @author Claudio Pelosi claudio@sisisoftware.it
 * @author SISI Software S.n.c. - www.sisisoftware.it
 * @version 1.0, 02/12/2013
 * 
 */
@Entity
@Table(name="agents")
public class Agent implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="AGENTS_AGENTID_GENERATOR", sequenceName="AGENTSSEQ",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="AGENTS_AGENTID_GENERATOR")
	private Integer agentid;

	private String address;

	private String agentvalut;

	private String city;

	private String companyname;

	private String contactname;

	private String contacttitle;

	private String country;

	private Date dtup;

	private String email;

	private String fax;

	private String gsm;

	private String homepage;

	private String notes;

	private String phone;

	private Integer portid;

	private String postalcode;

	private String region;

	private Boolean req;

	private String reservednotes;

	/**
	 * Agent.java - The persistent class for the <i>agent's database table</i>. 
	 * @author Pedro Gonzalez pedro@sisisoftware.it
	 * @author Claudio Pelosi claudio@sisisoftware.it
	 * @author SISI Software S.n.c. - www.sisisoftware.it
	 * @version 1.0, 02/12/2013
	 * 
	 */
	public Agent() {
	}

	public Integer getAgentid() {
		return this.agentid;
	}

	public void setAgentid(Integer agentid) {
		this.agentid = agentid;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAgentvalut() {
		return this.agentvalut;
	}

	public void setAgentvalut(String agentvalut) {
		this.agentvalut = agentvalut;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCompanyname() {
		return this.companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}

	public String getContactname() {
		return this.contactname;
	}

	public void setContactname(String contactname) {
		this.contactname = contactname;
	}

	public String getContacttitle() {
		return this.contacttitle;
	}

	public void setContacttitle(String contacttitle) {
		this.contacttitle = contacttitle;
	}

	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}


	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getGsm() {
		return this.gsm;
	}

	public void setGsm(String gsm) {
		this.gsm = gsm;
	}

	public String getHomepage() {
		return this.homepage;
	}

	public void setHomepage(String homepage) {
		this.homepage = homepage;
	}

	public String getNotes() {
		return this.notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getPortid() {
		return this.portid;
	}

	public void setPortid(Integer portid) {
		this.portid = portid;
	}

	public String getPostalcode() {
		return this.postalcode;
	}

	public void setPostalcode(String postalcode) {
		this.postalcode = postalcode;
	}

	public String getRegion() {
		return this.region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public Boolean getReq() {
		return this.req;
	}

	public void setReq(Boolean req) {
		this.req = req;
	}

	public String getReservednotes() {
		return this.reservednotes;
	}

	public void setReservednotes(String reservednotes) {
		this.reservednotes = reservednotes;
	}

	public Date getDtup() {
		return dtup;
	}

	public void setDtup(Date dtup) {
		this.dtup = dtup;
	}

}